package com.hhf.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hhf.springboot.model.entity.CommentThumb;
import com.hhf.springboot.model.entity.User;

/**
 * 评论点赞服务
 *
 * @author hhf
 * @data 2024/9/26 
 */
public interface CommentThumbService extends IService<CommentThumb> {

    /**
     * 点赞
     *
     * @param commentId
     * @param loginUser
     * @return
     */
    int doCommentThumb(long commentId, User loginUser);

    /**
     * 帖子点赞（内部服务）
     *
     * @param userId
     * @param commentId
     * @return
     */
    int doCommentThumbInner(long userId, long commentId);
}
